package org.shiro.basic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 系统用户实体类
 *
 * @author LiKun
 * @date 2021/11/2 22:07
 */
@Data
@TableName("system_user")
@ApiModel("系统用户相关实体类")
public class SystemUser implements Serializable {
    @TableId
    @ApiModelProperty(notes = "ID")
    private String id;

    @ApiModelProperty(notes = "账号名称")
    private String username;

    @ApiModelProperty(notes = "账号密码")
    private String password;

    @ApiModelProperty(notes = "帐号状态")
    private boolean enabled;

    @TableField(exist = false)
    private List<SystemRole> systemRoles;
}
